package com.hera.process.config.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import com.hera.base.domain.BaseDomain;


@Entity
@Table(name="PROFILE_OPTION")
public class ProfileOption extends BaseDomain implements Serializable{

	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy = GenerationType.TABLE, generator = "SEQ_PROFILE_OPTION")
	@TableGenerator(name = "SEQ_PROFILE_OPTION", table = "sequence", pkColumnName = "seq_name", 
	valueColumnName = "seq_id",         pkColumnValue = "ProfileOption", allocationSize = 1)
	@Column(name="ID_PROFILE_OPTION")	
	private Long idProfileOption;
	@ManyToOne
	@JoinColumn(name="ID_PROFILE")
	private Profile profile;
	@ManyToOne
	@JoinColumn(name="ID_OPTION")
	private Option option;
	
	public Long getIdProfileOption() {
		return idProfileOption;
	}
	public void setIdProfileOption(Long idProfileOption) {
		this.idProfileOption = idProfileOption;
	}
	public Profile getProfile() {
		return profile;
	}
	public void setProfile(Profile profile) {
		this.profile = profile;
	}
	public Option getOption() {
		return option;
	}
	public void setOption(Option option) {
		this.option = option;
	}
	
	
}
